.TH std::common_type 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::common_type \- std::common_type

.SH Synopsis
   Defined in header <iterator>
   template< class T, std::common_with<T> U >

       requires std::input_iterator<std::common_type_t<T, U>> \fB(1)\fP (since C++23)

   struct common_type<std::basic_const_iterator<T>, U>;
   template< class T, std::common_with<T> U >

       requires std::input_iterator<std::common_type_t<T, U>> \fB(2)\fP (since C++23)

   struct common_type<U, std::basic_const_iterator<T>>;
   template< class T, std::common_with<T> U >

       requires std::input_iterator<std::common_type_t<T, U>> \fB(3)\fP (since C++23)
   struct common_type<std::basic_const_iterator<T>,

                      std::basic_const_iterator<U>>;

   The common type of two basic_const_iterators or a basic_const_iterator and another
   iterator type is a basic_const_iterator of the common underlying type.

   The common type is defined only if T and U share a common type which models
   input_iterator.

.SH Member types

   Member type Definition
   type        std::basic_const_iterator<std::common_type_t<T, U>> (1-3)

.SH Example

    This section is incomplete
    Reason: no example

.SH See also

   common_type determines the common type of a group of types
   \fI(C++11)\fP     \fI(class template)\fP

.SH Category:
     * Todo no example
